<{include file="head.html"}>
<style>
    .table td{
        border:1px #385ea2 dashed;
    }
</style>

<div class="public_main">
    <{if $orderinfo.status==0}>
    <script>
                function sub(){
                    if(!confirm("将从你的会员账户中扣除 <{$orderinfo.price}> 元，确定支付？")){
                        return false;
                    }
                }
    </script>
    <form method="post" onsubmit="return sub()">
        <input type="hidden" name="orderid" value="<{$orderinfo.id}>"/>
    <div class="mbox">
        <div class="mt">订单信息</div>
        <div class="md">
            <table style="width: 600px;margin:5px;" class="table" cellspacing="1">
                <tr>
                    <td><b>订单编号</b></td>
                    <td><b>包含宝贝</b></td>
                    <td><b>支付总额</b></td>
                    <td><b>创建时间</b></td>
                    <td><b>状态</b></td>
                    
                </tr>
                <tr>
                    <td> <{$orderinfo.id}></td>
                    <td> <{$orderinfo.item}></td>
                    <td>共 <{$orderinfo.price}> 元</td>
                    <td> <{$orderinfo.time|date_format:'%Y-%m-%d %H:%M:%S'}></td>
                    <td> <font color="red">待付款</font></td>
                </tr>
            </table>
        </div>
    </div>
    <div class="mbox">
        <div class="mt">
            收货人信息
        </div>
        <div class="md">
            <table>
            <tr>
                <td>联系电话</td>
                <td><input type="text" name="tel"></td>
                
            </tr>
            <tr>
                <td>收货地址</td>
                <td><textarea name="address" style="width: 500px;height:100px;"></textarea></td>
            </tr>
            <tr>
            
                <td colspan="2"><input type="submit" name="paysubmit" value="确认付款" /></td>
            </tr>
            </table>
        </div>
        
    </div>
    </form>
    
    <{else}>
    <div class="mbox">
        <div class="mt">订单详情</div>
        <div class="md">
            <table style="width: 900px;margin:5px;" class="table" cellspacing="1">
                <tr>
                    <td><b>订单编号</b></td>
                    <td><b>包含宝贝</b></td>
                    <td><b>支付总额</b></td>
                    <td><b>创建时间</b></td>
                    <td><b>状态</b></td>
                    <td><b>支付时间</b></td>
                    <td><b>收货地址</b></td>
                    
                </tr>
                <tr>
                    <td> <{$orderinfo.id}></td>
                    <td> <{$orderinfo.item}></td>
                    <td> <{$orderinfo.price}> 元</td>
                    <td> <{$orderinfo.time|date_format:'%Y-%m-%d %H:%M:%S'}></td>
                    <td> <font color="red">已付款，等待收货</font></td>
                    <td> <{$orderinfo.paytime|date_format:'%Y-%m-%d %H:%M:%S'}>   </td>
                    <td> <{$orderinfo.address}> </td>
                    
                </tr>
            </table>
        </div>
    </div>
    
    
    <{/if}>
</div>
<{include file="foot.html"}>
